import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    userinfo: '',
    islogin: false
  },
  mutations: {
    setUserinfo (state, userinfo) {
      state.userinfo = userinfo
    },
    setUserLogin (state, islogin) {
      state.islogin = islogin
    }
  },
  actions: {},
  modules: {}
})
